<?php
/**
 * Created by PhpStorm.
 * User: liuwei
 * Date: 2022/12/15
 * Time: 11:49
 */

namespace App\Services\Business\Models;

use App\Services\Member\Models\User;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class ThumbsUp extends Base
{
    use HasFactory;




    protected $table = 'thumbs_up';

    protected $fillable = [
        'id','user_id', 'thumbsupable_type','thumbsupable_id'
    ];


    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }
    public function thumbsupable()
    {
        return $this->morphTo();
    }
}